package com.zhang.apidriver.remote;

import com.zhang.internalcommon.dto.OrderRequest;
import com.zhang.internalcommon.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-20
 */
@FeignClient("service-order")
public interface ServiceOrderClient {
	@PostMapping("/order/to-pick-up-passenger")
	public ResponseResult toPickUpPassenger(@RequestBody OrderRequest orderRequest);

	@PostMapping("/order/arrived-departure")
	public ResponseResult arrivedDeparture(@RequestBody OrderRequest orderRequest);

	@PostMapping("/order/pick-up-passenger")
	public ResponseResult pickUpPassenger(@RequestBody OrderRequest orderRequest);

	@PostMapping("/order/passenger-getoff")
	public ResponseResult passengerGetoff(@RequestBody OrderRequest orderRequest);

	@PostMapping("/order/push-pay-info")
	public ResponseResult pushPayInfo(@RequestBody OrderRequest orderRequest);

	@PostMapping("/order/cancel")
	public ResponseResult cancel(@RequestParam Long orderId, @RequestParam String identity);
}
